package fun.liuyu2783.dtc.order.feign;

import fun.liuyu2783.dtc.common.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="dtc-goods", url = "127.0.0.1:7092")
public interface GoodsFeign {

    @RequestMapping("/goods/stock/{tradeId}")
    Response stock(@PathVariable("tradeId") String tradeId);

}
